package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Hanlan;
import com.example.demo.entity.Zong;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * (Zong)表数据库访问层
 *
 * @author makejava
 * @since 2023-11-19 18:47:52
 */
@Mapper
public interface ZongMapper extends BaseMapper<Zong> {
    List<Hanlan> selectAll();
    @Select("SELECT * FROM zong WHERE id = #{id}")
    List<Hanlan> getById(@Param("id") int id);
}
